import request from '@/utils/request'

// 查询成药模板项列表
export function listMedicineModelItem(query) {
  return request({
    url: '/dms/medicineModelItem/list',
    method: 'get',
    params: query
  })
}

// 查询成药模板项详细
export function getMedicineModelItem(id) {
  return request({
    url: '/dms/medicineModelItem/' + id,
    method: 'get'
  })
}

// 新增成药模板项
export function addMedicineModelItem(data) {
  return request({
    url: '/dms/medicineModelItem',
    method: 'post',
    data: data
  })
}

// 修改成药模板项
export function updateMedicineModelItem(data) {
  return request({
    url: '/dms/medicineModelItem',
    method: 'put',
    data: data
  })
}

// 删除成药模板项
export function delMedicineModelItem(id) {
  return request({
    url: '/dms/medicineModelItem/' + id,
    method: 'delete'
  })
}
